cmake_minimum_required(VERSION 3.1)

project(DPV VERSION 1.0.0)

enable_language(C CXX)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_COMPILER /usr/bin/clang++)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/network)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/sylvan/src)

file(GLOB SOURCES "src/*.cpp" "src/network/*.cpp")
file(GLOB LIBRARIES "lib/*.dylib")
message("LIBRARIES = ${LIBRARIES}")

add_executable(I2 i2test.cpp ${SOURCES})
target_link_libraries(I2 ${LIBRARIES})

add_executable(MAIN main.cpp)
target_link_libraries(MAIN ${LIBRARIES})